<?php
include("backend.php");
global $login_status;

if (!isset($theme)){
    if (!isset($notheme)){
    include("themes/default/header.php");
    } else { ?>
<head><link href="stylesheet.css" rel="stylesheet" type="text/css" />  

</head>
        
        <body>
    <?php
    }
} else {
    include("themes/".$theme."/header.php");
}
if (isset($mod)){

//echo "<div align=\"center\"><table cellpadding=\"30\" style=\"border:solid 1px #000000;background-color:#ffff00;\"><tr><td>";    
if (isset($file)&&!empty($file)){
 include ("modules/$mod/$file".".php");   
} else include ("modules/$mod/index.php");
//echo "</td></tr></table></div>";


} else { 
   
   include ("modules/content/home.php");  
}
if (!isset($theme)){
   if (!isset($notheme)){
    include("themes/default/footer.php");
   } else {
       echo "</body>";
   }
} else {
   include("themes/".$theme."/footer.php"); 
}
?>

